package main

import "fmt"

func bubbleSort(array []int) []int {
	for i := len(array) - 1; i >=0 ; i-- {
		fmt.Println(array[i])
	}
	return array
}

func main() {
	array := bubbleSort([]int{5,3,1,4})
	fmt.Printf("%+v", array)
}